<script type="text/javascript">
		Yutil.useLoadingMessage();
		Yutil.en.enhance();
</script>
<%	
		String employeeId = request.getParameter("thisemployeeid");
		String employeeIdFromAttribute = (String) request.getAttribute("thisemployeeid");
		Employee employee = new Employee();
		employee.setName(employeeId != null ? employeeId : employeeIdFromAttribute);
%>
<div style="height: 6%">
	<table align='left'>
				<tr>
						<td>
							<input class='button' type="button" onclick="createSalaryService(this)" employee="<%= employeeId%>" value="创建工资服务" />
						</td>
						<!-- if want to add new service, add the button here, so the extenible is OK -->
						<td> 
							<input class='button' type="button" onclick="createSpecialService(this)" employee="<%= employeeId%>" value="创建特殊服务" />
						</td>
						<td>
							<input class='button' type="button" onclick="backToEmployee(this)" value="回到人才级" />
						</td>
				</tr>
		</table>
</div>
<p></p>
<fieldset>
		<legend>员工信息</legend>
		员工姓名 -- <%= employee.getName()%><br/>
</fieldset>

<br/>

<fieldset class="form">
		<legend>服务列表</legend>
		<table align="left">
				<tr>	
						<td>服务名称</td>
						<td>服务开始时间</td>
						<td>服务结束时间</td>
						<td>金额</td>
				</tr>
		</table>
</fieldset>

<script type="text/javascript">
		createSalaryService = function(oElem) {
				var pars = 'employeeid_service_create=' + oElem.getAttribute('employee');
				var url = 'la_service_create.jsp';
				Yutil.createDialog('serviceCreateDialog', '98%', '98%', '工资服务');
				var myAjax = new Ajax.Updater('serviceCreateDialog_content',url,{method:'get', parameters: pars,  evalScripts: true});
				Yutil.showDialog('serviceCreateDialog');
		}
		
		createSpecialService = function(oElem) {
				var pars = 'employeeid_service_create=' + oElem.getAttribute('employee');
				var url = 'la_service_create_special.jsp';
				Yutil.createDialog('serviceCreateDialog', '98%', '98%', '特殊服务');
				var myAjax = new Ajax.Updater('serviceCreateDialog_content',url,{method:'get', parameters: pars,  evalScripts: true});
				Yutil.showDialog('serviceCreateDialog');
		}
		
		backToEmployee = function(oElem) {
				var url = 'la_employee_list.jsp';
				var pars = 'employeeid=' + "<%= employeeId%>";
				var myAjax = new Ajax.Updater('right',url,{method:'get', parameters: pars , evalScripts: true});
		}
</script>
<!-- 
 -->
<%@ page import="com.esms.struts.service.JspWidget" %> 
<%@ page import="java.util.*" %>
<%@ page import="com.esms.bean.Employee" %>
<%@ page import="com.esms.struts.service.*" %>
<%@ page language="java" contentType="text/html; charset=utf-8" %>